package com.hopes.bizz.common.core.annotation;

import com.hopes.bizz.common.core.validate.validator.ExcelDictImportValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * @author ljh
 * @Description Excel 数据导入，校验数据字典label值是否存在
 * @time 2023/8/7 13:06
 */
@Target({  FIELD })
@Retention(RUNTIME)
@Documented
@Constraint(validatedBy = {ExcelDictImportValidator.class})
public @interface ExcelDictImportValidate {

    String enumResolver();

    String message();

    //分组校验
    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};

}
